#import "dfhgwhruebvhrheyairplaneflock.h"
@interface dfhgwhruebvhrheyairplaneflock ()
@property (weak, nonatomic) IBOutlet UIButton *couponBtnIV;
@end
@implementation dfhgwhruebvhrheyairplaneflock {
	void(^_callback)(void);
}
- (void)awakeFromNib {
	[super awakeFromNib];
	self.backgroundColor = [UIColor clearColor];
}
- (void)couponViewType:(PPP_CouponPopViewType)type andClick:(void(^)(void))callback {
	_callback = callback;
	switch (type) {
		case PPP_CouponPopViewTypeHome: {
			NSLog(@"首页弹窗");
		}
			break;
		case PPP_CouponPopViewTypeAuthList: {
			self.php_w = 305;
			self.php_h = 283;
			self.center = dfhgwhruebvhrheyoptionsaving.keyWindow.center;
			[self.couponBtnIV setBackgroundImage:[UIImage imageNamed:@"home_auth_list_pop_coupon_bg"] forState:UIControlStateNormal];
			[self.couponBtnIV mas_makeConstraints:^(MASConstraintMaker *make) {
				make.size.mas_equalTo(CGSizeMake(305, 283));
			}];
		}
			break;
		default:
			break;
	}
}
- (IBAction)couponAction {
	if (_callback) {
		_callback();
	}
}
@end
